<include file="Public/left" />
<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>

<div class="title title-article">文章分类</div>


<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
  <tr class="first">
    <td width="30" align="center" valign="middle">ID</td>
    <td width="30" align="center" valign="middle">排序</td>
    <td>名称</td>
    <td width="100" align="center" valign="middle">别名</td>
    <td width="100" align="center" valign="middle">上级分类</td>
    <td width="120" align="center" valign="middle">操作</td>
  </tr>
  <volist name="cat" id="list">
  <tr>
    <td width="30" align="center" valign="middle"><{$list['id']}></td>
    <td width="30" align="center" valign="middle"><{$list['ord']}></td>
    <td><a class="link" href="<{:U('Home/Category/index',array('id'=>$list['url']))}>" title="点击访问" target="_blank"><{$list['name']}></a></td>
    <td width="100" align="center" valign="middle"><{$list['url']}></td>
    <td width="100" align="center" valign="middle"><if condition="$list['pid'] eq 0">顶级分类<else /><{:getCatName($list['pid'])}></if></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<{:U('catedit','id='.$list['id'])}>">修改</a> <a class="del" href="<{:U('catdelete','id='.$list['id'])}>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr>
  </volist>
</table>

<include file="Public/foot" />